package com.toycloud.business.service;

import com.toycloud.business.domain.bo.DemandLogBo;
import com.toycloud.business.domain.vo.DemandLogVo;
import com.toycloud.business.dto.results.UserParam;
import com.toycloud.common.core.page.TableDataInfo;
import com.toycloud.common.core.domain.PageQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.Collection;
import java.util.List;

/**
 * demandLogService接口
 *
 * @author binlu6
 * @date 2024-11-06
 */
public interface IDemandLogService {

    /**
     * 查询demandLog
     */
    DemandLogVo queryById(Long id);

    /**
     * 查询demandLog列表
     */
    TableDataInfo<DemandLogVo> queryPageList(DemandLogBo bo, PageQuery pageQuery);

    /**
     * 查询demandLog列表
     */
    List<DemandLogVo> queryList(DemandLogBo bo);

    List<DemandLogVo> queryListBydid(Integer did);

    /**
     * 新增demandLog
     */
    Integer insertByBo(DemandLogBo bo);

    /**
     * 修改demandLog
     */
    Boolean updateByBo(DemandLogBo bo);

    /**
     * 校验并批量删除demandLog信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    String plusVersion(String version);

    UserParam username(HttpServletRequest request);
}
